package com.lanou.pianke.article.mapper;

import com.lanou.pianke.article.entity.Article;
import com.lanou.pianke.article.entity.ArticleComment;
import com.lanou.pianke.article.entity.ArticleInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


public interface ArticleMapper {
    List<Article> selectArticleByAcid(Integer categoryId);

    List<String> selectArticleId();

    Integer selectCommentNumber(String contentId);

    Integer selectReplyNumber(String contentId);

    void updateArticleComment(String contentId, Integer commentNumbers);

    ArticleInfo selectArticleInfo(String contentId);

    List<String> selectCommentId(String contentId);


    List<ArticleComment> selectCommentInfo(String contentId);

    void insertArticle(Article article);

    void insertArticleContent(Article article);

    void insertArticleComment(ArticleComment articleComment);

    List<Article> showAll();

    void deleteByContentId(String contentId);
}
